﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace StateMachine
{
    public class TransitionCollection : List<Transition>
    {
		public TransitionCollection(IEnumerable<Transition> transitions) : base(transitions) { }
		public TransitionCollection() : base() { }

        public List<Transition> GetTransitionsFor(char? c)
        {
            return this.Where(x => x.Read == c).ToList<Transition>();
        }

    }
}
